<?php
require('class/common.php');

if(!$_SESSION['user_title']){
	echo '<script>alert("抱歉请重新登录！");location.href="user.php";</script>';
}
$sql="insert into ".lc()."_gwc(lc_user_id,lc_goods_id,lc_zt) values ('{$_SESSION['user_id']}','{$_GET['lc_id']}','0')";
$rs = mysql_query($sql);
if($rs){
	echo '<script>alert("添加成功！");location.href="gwc.php";</script>';
}
?>